package me.zhengjie.modules.service.impl;

import lombok.RequiredArgsConstructor;
import me.zhengjie.modules.domain.Batch;
import me.zhengjie.modules.repository.BatchMapper;
import me.zhengjie.modules.service.BatchService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class BatchServiceImpl implements BatchService {

    private final BatchMapper batchMapper;

    @Override
    public int createBatch(Batch batch) {
        return batchMapper.insertBatch(batch);
    }
}
